package cn.tedu.controller;

import cn.tedu.pojo.User;
import cn.tedu.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("crud")
public class UserContrroller {
    @Autowired
    private UserService userService;
    @RequestMapping("sel")
    public List<User> ourSelectByName(User user) {
        return userService.ourSelectByName(user);
    }
}
